package org.cangku.dao;

import org.apache.ibatis.annotations.Param;
import org.cangku.entity.Audit;

import java.util.List;

public interface AuditDao {

    public int insertByCaiGou(Audit audit);

    /*得到所有未审核的单据*/
    public List<Audit> queryByDanhao(@Param("danhao") String danhao,@Param("offset") int offset,@Param("limit") int limit);

    public int getCount(@Param("danhao") String danhao);

    public int updateAuditStatic(String danhao);
    /*审核通过的*/
    public List<Audit> getDingDan(@Param("danhao") String danhao,@Param("offset") int offset,@Param("limit") int limit);
    public int getCounttg(@Param("danhao") String danhao);

    /*根据单号把状态修改位已入库*/
    public int updateYiRuKu(String danhao);


    //得到所有采购单
    public List<Audit> query(@Param("danhao") String danhao,@Param("adstid")int adstid,@Param("date1") String date1,@Param("date2") String date2,@Param("offset") int offset,@Param("limit") int limit);

    public int getCountBytj(@Param("danhao") String danhao,@Param("adstid")int adstid,@Param("date1") String date1,@Param("date2") String date2);
}
